home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / grph.dxr / 00022_close box.ls < prev    next >
Encoding:
Text File  |  2000-01-28  |  844 b   |  36 lines

  1. property ancestor, pMIAW
  2. global gIsRolloverTextOn
  3.  
  4. on new me, buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant
  5.   if objectp(descendant) then
  6.     ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, descendant)
  7.   else
  8.     ancestor = new(script("button with balloon"), buttonName, castName, theChannel, theStageLoc, theBalloonChannel, theBalloonLoc, me)
  9.   end if
  10.   return me
  11. end
  12.  
  13. on setMIAW me, miaw
  14.   pMIAW = miaw
  15.   return me
  16. end
  17.  
  18. on performFunction me
  19.   closeMe(pMIAW)
  20.   return me
  21. end
  22.  
  23. on performRolloverFunction me
  24.   if gIsRolloverTextOn then
  25.     performRolloverFunction(ancestor)
  26.   end if
  27.   return me
  28. end
  29.  
  30. on performRolloffFunction me
  31.   if gIsRolloverTextOn then
  32.     performRolloffFunction(ancestor)
  33.   end if
  34.   return me
  35. end
  36.